package com.guoxue.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.guoxue.dao.IResourceDao;
import com.guoxue.domain.ResourceVo;
import com.guoxue.service.IResourceService;
@Service("resourceService")
public class ResourceServiceImpl implements IResourceService{
	@Resource
	private IResourceDao dao;

	@Override
	public void saveResource(ResourceVo rv) {
		dao.saveResource(rv);
	}

	@Override
	public List<ResourceVo> getResourceList() {
		return dao.getResourceList();
	}

	@Override
	public List<ResourceVo> getResourceByVersionCode(String versionCode) {
		return dao.getResourceByVersionCode(versionCode);
	}

	@Override
	public ResourceVo getResourceByKey(Integer id) {
		return dao.getResourceByKey(id);
	}

}
